import mockjs from 'mockjs';
const { config } = require('./common')
const { apiPrefix } = config
let database = mockjs.mock({
  "info": {
    "product_type": "服务类",
    "request_type": "http/json",
    "interface_address": [
      "http://119.11.157.21:8080",
      "http://119.11.157.21:8088",
      "http://119.11.157.21:8080",
      "http://119.11.157.21:8088"
    ],
    "version_id": "V6.5",
    "function_total": "23",
    "interface_total": "50",
    "product_status": "enable",
  },
  "list": [{
    "product_id": "10001",
    "function_id":"10001",
    "product_name":"就诊服务",
    "function_name":"当天挂号",
    "version_id":"V6.3",
    "function_status":"enable",
    "interface_total":"8"
  }, {
    "product_id": "10001",
    "function_id":"10002",
    "product_name":"就诊服务",
    "function_name":"当天挂号",
    "version_id":"V6.3",
    "function_status":"disable",
    "interface_total":"8"
  }]
})

module.exports = {
  [`GET ${apiPrefix}/overview`] (req, res) {
    res.status(200).json(database)
  },
}